//
//  GatherMonitor.h
//  LiveGather
//
//  Created by macintosh on 16/9/12.
//  Copyright © 2016年 macintosh. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM (NSInteger, GatherMonitorState) {
    GatherMonitorUnknown,
    GatherMonitorReady,
    GatherMonitorPending,
    GatherMonitorStart,
    GatherMonitorStop,
    GatherMonitorError
};

@class MonitorInfo;

@interface GatherMonitor : UIView

@property (nonatomic, assign) GatherMonitorState state;
@property (nonatomic, copy) NSString *resStr;;
@property (nonatomic, strong) MonitorInfo *monitorInfo;

+ (instancetype)gatherMonitorWithGathorState:(GatherMonitorState)state
                                         res:(NSString *)res
                                 monitorInfo:(MonitorInfo *)monitorInfo;

@end
